<?php /* Smarty version Smarty-3.1.6, created on 2013-04-07 10:03:29
         compiled from "/home/zmx/erp2.1/DzhPHP/FrameWork/Tpl/FactoryStat/list.tpl" */ ?>
<?php /*%%SmartyHeaderCode:4956875875160d3f1aa5773-27400148%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '870b8eb1dad111ac58b8b93e32576fbfb116cf63' => 
    array (
      0 => '/home/zmx/erp2.1/DzhPHP/FrameWork/Tpl/FactoryStat/list.tpl',
      1 => 1364183646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '4956875875160d3f1aa5773-27400148',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'lang' => 0,
    'company_currency_count' => 0,
    'list' => 0,
    'item' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_5160d3f1b37c4',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5160d3f1b37c4')) {function content_5160d3f1b37c4($_smarty_tpl) {?><?php if (!is_callable('smarty_block_tr')) include '/home/zmx/erp2.1/DzhPHP/FrameWork/Extend/Vendor/Smarty/plugins/block.tr.php';
?><table  class="list" border="1">
	<tr>
		<th rowspan="1"><?php echo $_smarty_tpl->tpl_vars['lang']->value['factory_name'];?>
</th> 
		<?php if ($_smarty_tpl->tpl_vars['company_currency_count']->value>1){?>
		<th rowspan="1"><?php echo $_smarty_tpl->tpl_vars['lang']->value['currency_no'];?>
</th>
		<?php }?>
		<?php if (C('instock.add')==2){?>
		<th rowspan="1"><?php echo $_smarty_tpl->tpl_vars['lang']->value['on_road_money'];?>
</th> 
		<?php }?>
		<th rowspan="1"><?php echo $_smarty_tpl->tpl_vars['lang']->value['money'];?>
</th> 
	</tr> 
	<?php $_smarty_tpl->smarty->_tag_stack[] = array('tr', array('from'=>$_smarty_tpl->tpl_vars['list']->value['list'])); $_block_repeat=true; echo smarty_block_tr(array('from'=>$_smarty_tpl->tpl_vars['list']->value['list']), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

		<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('merge'=>'comp_id','class'=>'t_left')); $_block_repeat=true; echo smarty_block_td(array('merge'=>'comp_id','class'=>'t_left'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

			<?php echo $_smarty_tpl->tpl_vars['item']->value['factory_name'];?>

		<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('merge'=>'comp_id','class'=>'t_left'), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

		<?php if ($_smarty_tpl->tpl_vars['company_currency_count']->value>1){?>
		<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array()); $_block_repeat=true; echo smarty_block_td(array(), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>

			<?php echo $_smarty_tpl->tpl_vars['item']->value['currency_no'];?>

		<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array(), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>
 
		<?php }?>
		<?php if (C('instock.add')==2){?>
		<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('class'=>'t_right')); $_block_repeat=true; echo smarty_block_td(array('class'=>'t_right'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
  
			<?php if ($_smarty_tpl->tpl_vars['item']->value['total_on_road']>0){?><?php echo $_smarty_tpl->tpl_vars['item']->value['dml_total_on_road'];?>
<?php }?> 
		<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('class'=>'t_right'), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

		<?php }?>
		<?php $_smarty_tpl->smarty->_tag_stack[] = array('td', array('class'=>'t_right')); $_block_repeat=true; echo smarty_block_td(array('class'=>'t_right'), null, $_smarty_tpl, $_block_repeat);while ($_block_repeat) { ob_start();?>
 
			<a href="javascript:;" onclick="addTab('<?php echo $_smarty_tpl->tpl_vars['item']->value['detail_url'];?>
','<?php echo $_smarty_tpl->tpl_vars['lang']->value['view_detail'];?>
',1); ">
			<?php echo $_smarty_tpl->tpl_vars['item']->value['dml_total_need_paid'];?>

			</a>
		<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_td(array('class'=>'t_right'), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<?php $_block_content = ob_get_clean(); $_block_repeat=false; echo smarty_block_tr(array('from'=>$_smarty_tpl->tpl_vars['list']->value['list']), $_block_content, $_smarty_tpl, $_block_repeat);  } array_pop($_smarty_tpl->smarty->_tag_stack);?>

	<tr class="red">
		<?php if ($_smarty_tpl->tpl_vars['company_currency_count']->value>1){?>
		<td>&nbsp;</td>
		<?php }?>
		<td class="t_right"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page_total'];?>
</td>
		<?php if (C('instock.add')==2){?>
		<td class='t_right'><?php echo $_smarty_tpl->tpl_vars['list']->value['total']['total_currency_info_1'];?>
</td>
		<?php }?>
		<td class='t_right'><?php echo $_smarty_tpl->tpl_vars['list']->value['total']['total_currency_info_0'];?>
</td>
	</tr>
	<tr class="red">
		<?php if ($_smarty_tpl->tpl_vars['company_currency_count']->value>1){?>
		<td>&nbsp;</td>
		<?php }?>
		<td class="t_right"><?php echo $_smarty_tpl->tpl_vars['lang']->value['total'];?>
</td>
		<?php if (C('instock.add')==2){?>
		<td class='t_right'><?php echo $_smarty_tpl->tpl_vars['list']->value['page_total']['total']['total_currency_info_1'];?>
</td>
		<?php }?>
		<td class='t_right'><?php echo $_smarty_tpl->tpl_vars['list']->value['page_total']['total']['total_currency_info_0'];?>
</td>
	</tr>
</table>
<br><br><?php }} ?>